package almacenes.modelo.entidad;
// Generated 16/02/2012 04:45:02 PM by Hibernate Tools 3.4.0.CR1


import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.UniqueConstraint;

/**
 * PuntoDestino generated by hbm2java
 */
@Entity
@Table(name="PUNTO_DESTINO"
    , uniqueConstraints = @UniqueConstraint(columnNames={"ID_TIPO_DOC", "NUM_DOC"}) 
)
public class PuntoDestino  implements java.io.Serializable {


     private int idPtoDestino;
     private Byte idTipoDoc;
     private String numDoc;
     private String nombre;
     private Byte idEstadoMae;
     private String usuReg;
     private Date fecReg;
     private String usuAct;
     private Date fecAct;
     private Set<StockprodagrupDestino> stockprodagrupDestinos = new HashSet(0);

    public PuntoDestino() {
    }

	
    public PuntoDestino(int idPtoDestino) {
        this.idPtoDestino = idPtoDestino;
    }
    public PuntoDestino(int idPtoDestino, Byte idTipoDoc, String numDoc, String nombre, Byte idEstadoMae, String usuReg, Date fecReg, String usuAct, Date fecAct, Set<StockprodagrupDestino> stockprodagrupDestinos) {
       this.idPtoDestino = idPtoDestino;
       this.idTipoDoc = idTipoDoc;
       this.numDoc = numDoc;
       this.nombre = nombre;
       this.idEstadoMae = idEstadoMae;
       this.usuReg = usuReg;
       this.fecReg = fecReg;
       this.usuAct = usuAct;
       this.fecAct = fecAct;
       this.stockprodagrupDestinos = stockprodagrupDestinos;
    }
   
     @Id 

    
    @Column(name="ID_PTO_DESTINO", unique=true, nullable=false, precision=7, scale=0)
    public int getIdPtoDestino() {
        return this.idPtoDestino;
    }
    
    public void setIdPtoDestino(int idPtoDestino) {
        this.idPtoDestino = idPtoDestino;
    }

    
    @Column(name="ID_TIPO_DOC", precision=2, scale=0)
    public Byte getIdTipoDoc() {
        return this.idTipoDoc;
    }
    
    public void setIdTipoDoc(Byte idTipoDoc) {
        this.idTipoDoc = idTipoDoc;
    }

    
    @Column(name="NUM_DOC", length=20)
    public String getNumDoc() {
        return this.numDoc;
    }
    
    public void setNumDoc(String numDoc) {
        this.numDoc = numDoc;
    }

    
    @Column(name="NOMBRE", length=150)
    public String getNombre() {
        return this.nombre;
    }
    
    public void setNombre(String nombre) {
        this.nombre = nombre;
    }

    
    @Column(name="ID_ESTADO_MAE", precision=2, scale=0)
    public Byte getIdEstadoMae() {
        return this.idEstadoMae;
    }
    
    public void setIdEstadoMae(Byte idEstadoMae) {
        this.idEstadoMae = idEstadoMae;
    }

    
    @Column(name="USU_REG", length=10)
    public String getUsuReg() {
        return this.usuReg;
    }
    
    public void setUsuReg(String usuReg) {
        this.usuReg = usuReg;
    }

    @Temporal(TemporalType.DATE)
    @Column(name="FEC_REG", length=7)
    public Date getFecReg() {
        return this.fecReg;
    }
    
    public void setFecReg(Date fecReg) {
        this.fecReg = fecReg;
    }

    
    @Column(name="USU_ACT", length=10)
    public String getUsuAct() {
        return this.usuAct;
    }
    
    public void setUsuAct(String usuAct) {
        this.usuAct = usuAct;
    }

    @Temporal(TemporalType.DATE)
    @Column(name="FEC_ACT", length=7)
    public Date getFecAct() {
        return this.fecAct;
    }
    
    public void setFecAct(Date fecAct) {
        this.fecAct = fecAct;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="puntoDestino")
    public Set<StockprodagrupDestino> getStockprodagrupDestinos() {
        return this.stockprodagrupDestinos;
    }
    
    public void setStockprodagrupDestinos(Set<StockprodagrupDestino> stockprodagrupDestinos) {
        this.stockprodagrupDestinos = stockprodagrupDestinos;
    }




}


